<style type="text/css">
.table_list{  margin:0 auto; }
.table_list tr td{
	text-align:left;
}
.table_list tr td:hover{
	text-align:left;
}
.list{
	padding:0 0;
}
</style>
<div class="nav">
  <a href="{:U('Tuihuan/index')}">退货列表</a> <a class="sel"  href="#">详情</a>
</div>
<div class="search">
    <form method="get" action="">
        订单编号：<input type="text" name="order_no" id="order_no" value="{$order_no}" class="input1" />&nbsp;
        收货人：<input type="text" name="addr_realname" id="addr_realname" value="{$addr_realname}" style="width:60px;" class="input1" />&nbsp;
        会员手机/用户名/邮箱：<input type="text" name="member_name" style="width:80px" id="member_name" value="{$member_name}" class="input1" />
        &nbsp;<input type="submit" value="搜索" class="btn_search" />
        <input type="hidden" name="p" value="1" />
        <input type="hidden" name="status" value="{$status}" />
    </form>
</div>
<div class="list">
    <table width="980" border="0" class="table_list">
          <tr>
            <td>退款订号：<span style="color:#49b44b; font-weight:bold;">{$model.orderno}</span>　状态：<span style="color:#49b44b; font-weight:bold;">{$model.th_status|get_th_status}</span>　
             &nbsp; 申请时间：<span style="color:#49b44b; font-weight:bold;">{$model.create_time|stringtime}</span> </td>
          </tr>
          	<tr>
            <td>是否收到货：{$model.shouhuo} </td>
          </tr>
			<tr>
            <td>理由：{$model.reason} </td>
          </tr>
          	<tr>
            <td>退款金额：{$model.price} </td>
          </tr>
		  	<tr>
            <td>说明：{$model.detail|trim_textarea}</td>
          </tr>
          <if condition="$model['th_status'] eq 3 AND $model['shouhuo'] eq '已收到货'">
          
            	<tr>
            <td>快递名称：{$model.kuaidi} </td>
          </tr>
             	<tr>
            <td>快递单号：{$model.kuaidi_no} </td>
          </tr>
          </if>
		  		  	<tr>
            <td><volist name="picture_list" id="item"><a href="__ROOT__{$item}" target="_blank"><img src="__ROOT__{$item}" width="100"></a> &nbsp;</volist>
            </td>
          </tr>
          <tr style="display:none;">
            <td>订单备注：{$model.order_detail|htmlspecialchars_decode|trim_textarea}</td>
          </tr>
		  <tr><td><strong>人工审核</strong></td></tr>
          <tr>
            <td ><div class="qxdd_qxan">
                <form action="{:U('Tuihuan/tuihuan_action')}" method="post">
                 状态：<select name="th_status" id="th_status"   style="height:30px;">
				   <option value="0">已取消</option>
                  <option value="1">退款申请中</option>
				  <option value="3">审核通过</option>
                  <option value="4">审核不通过</option>
                   <option value="2">退款成功</option>

				</select> 
                  <input type="hidden" name="id" value="{$model.id}">
                  <input type="submit" class="btn_search" value="确定" /></span>
                </form>
              </div></td>
          </tr>
        </table>
    
    
</div>
 
		<script type="text/javascript">
		$(function(){
		$('#th_status').val({$model.th_status});
		})
		</script>